<template>
  <div class="card p-3 mt-3 bg-white">
    <div class="card-header d-flex ai-center pb-3">
      <i :class="`iconfont icon-${icon}`"></i>
      <div class="fs-xl flex-1 px-2">{{ title }}</div>
      <i class="iconfont icon-menu"></i>
    </div>
    <div class="card-body pt-3">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      //   required: true, //必填
      //   default: 0,
    },
    icon: {
      type: String,
      //   required: true, //必填
    },
  },
};
</script>

<style lang="scss" scoped>
.card {
  border-bottom: 1px solid #d4d9de;
  .card-header {
    border-bottom: 1px solid #d4d9de;
  }
}
</style>
